def draw(n):
    str = ''
    for i in range(n-n//2):
        print(' '*(2*(n//2-i)),end='')
        str =(2*i+1)*'*'
        for char in str:
            print(char,end=' ')
        print()
    for i in range(n//2):
        print(' '*(2*(i+1)),end='')
        str =(2*(n//2-i)-1)*'*'
        for char in str:
            print(char,end=' ')
        print()

def draw(n):
    for i in range(1, n + 1, 2):
        print(' ' * ((n - i) // 2+1), end='')
        print('* ' * i)
    for i in range(n - 2, 0, -2):
        print(' ' * ((n - i) // 2+1), end='')
        print('* ' * i)



n=int(input())
draw(n)